<!-- 简单的卡片 -->
<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>{{title}}</span>
        <el-button style="float: right; padding: 4px 0" type="text" @click="redirectToPath">更多</el-button>
        <span style="float: right;margin-right:10px;">{{count}} 条</span>
      </div>
      <slot name="content"></slot>
    </el-card>
  </div>
</template>

<script>
  export default {
    name: 'JtEasyCard',
    props:{
        title:{
            required:true,
        },
        count:{
            required:true,
        },
        path:{
            required:true,
        }
    },
    methods:{
        redirectToPath(){
            this.$router.push({
                path:this.path
            })
        }
    }
  }

</script>
